export * from "./config";
export * from "./device";
import dayjs from "dayjs";

/**
 * 格式化时间
 * @param split
 * @returns
 */
export function getCurrentYMD(split: string = "/") {
  let arr = ["日", "一", "二", "三", "四", "五", "六"];
  let dayjsIns = dayjs();
  return {
    currentTime: `${dayjsIns.format("HH")}:${dayjsIns.format("mm")}:${dayjsIns.format("ss")}`,
    month: `星期${arr[dayjsIns.day()]}`,
    ymd: dayjsIns.format(`YYYY${split}MM${split}DD`)
  };
}

export const labelMap = {
  GYQ: "烟感器",
  SGQ: "声光报警器",
  QSM: "应急照明",
  QMP: "气灭盘",
  SBN: "火警传感器",
  JLM: "防火卷帘",
  GWL: "传感器电缆",

  //
  FF2: "非电动防烟防火阀",
  FF1: "电动防烟防火阀",
  DDT: "风阀"
};
